package com.javasm.crm.controller.aftersale;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.javasm.crm.common.http.AxiosResult;
import com.javasm.crm.domin.entity.aftersale.Repairlocation;
import com.javasm.crm.service.aftersale.IRepairlocationService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lirui
 * @since 2021-07-17
 */
@RestController
@RequestMapping("/crm/repairlocation")
public class RepairlocationController {

    @Resource
    private IRepairlocationService repairlocationService;

    @GetMapping("getRepairInfo")
    public AxiosResult getRepairInfo(Integer locationId){

        List<Repairlocation> list = repairlocationService.getRepairInfo(locationId);

        return AxiosResult.success(list);
    }
}
